home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5877 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: news.vol.it!news
  2. From: bizzetti@mbox.vol.it (Fabio Bizzetti)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Scrolling only selected bitplanes
  5. Date: 19 Mar 1996 23:07:28 GMT
  6. Organization: Video On Line
  7. Distribution: world
  8. Message-ID: <2628.6653T1T2571@mbox.vol.it>
  9. References: <314e1835@beachyhd.demon.co.uk>
  10. NNTP-Posting-Host: molcl9.vol.it
  11. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  12.  
  13.  
  14. >Hi all,
  15.  
  16. >I'm wondering how to go about something..
  17.  
  18. >I have an intuition screen open, on to which I'm directly rendering (using
  19. >its own rastport, not a window's rastport). This window can be any number of
  20. >bitplanes (2 to 8), but usually is 8.
  21.  
  22. >I am currently drawing (using WritePixel()) and scrolling (using
  23. >ScrollRaster()). However, I want to be able to draw and scroll completely
  24. >*independently* of the final bitplane. So I draw and scroll planes 1 through
  25. >7, but plane 8 stays completely undisturbed.
  26.  
  27. >This will allow me a basic parallax effect. As planes 1 - 7 scroll by, plane
  28. >8 stays behind, motionless.
  29.  
  30. >However, I don't quite know how I can achieve this effect. Both WritePixel()
  31. >and ScrollRaster() both operate on *all* bitplanes in the Rastport. Is there
  32. >any way I can get these functions to leave the final plane completely alone?
  33.  
  34. >If it's not possible, it's only really the scrolling that really must not
  35. >interact with the background. Is it possible for me to scroll 7 of the 8
  36. >planes using a function other than ScrollRast? Then I could use the blitter
  37. >to only scroll the seven planes, whilst the 8th is left alone.
  38.  
  39. >Any help would be greatly appreciated!
  40.  
  41. Sorry to say it, but this is a good example of reality about OS and direct
  42. hardware programming. And also if there's a way to do it with the OS, it'll
  43. be damn slower and expecially damn more innatural and complex than it has
  44. to be.
  45.  
  46. What are the king of games?: consoles. Have you ever seen a console programmed
  47. through an OS such as Amiga's one?
  48.  
  49.  
  50. Sorry; I haven't been able to help you though.
  51.  
  52.  
  53. >.\dam.          [Team AMIGA]          //\ ad32@brighton.ac.uk \\/
  54.  
  55.  
  56.  
  57.  
  58. ------------------------------------------------------------------------------
  59. |                                                                            |
  60. |           Stop that fucking imperialist embargo against Cuba.              |
  61. |                 Hasta Siempre Comandante Che Guevara.                      |
  62. |                                                                            |
  63. |                                                                            |
  64. |    Fabio "Maverick" Bizzetti - bizzetti@mbox.vol.it - Maverick* at IRC     |
  65. |              The maker of "CyberMan" and "Virtual Karting"                 |
  66. |   working on "Virtual Rally" and "StarFighter", the 3D game that will      |
  67. |                        bring the Amiga to the top                          |
  68. |                                                                            |
  69. ------------------------------------------------------------------------------
  70.  
  71.  
  72.